<%-- Success Messages --%>
<c:if test="${not empty messages}">
    <div id="successMessages" class="messageRow">    
        <c:forEach var="msg" items="${messages}">
        	<div style="margin:0px 0px 10px 0px;padding-left:30px;vertical-align:middle;line-height:28px;background:url(<c:url value="/images/new/icon/information.png"/>) no-repeat;">
                <c:out value="${msg}" escapeXml="false"/>
            </div>
        </c:forEach>
    </div>
    <c:remove var="messages" scope="session"/>
</c:if>

<%-- Error Messages (on JSPs, not through Struts --%>
<c:if test="${not empty errors}">
    <div id="errorMessages" class="messageRow">
        <c:forEach var="error" items="${actionErrors}">
	        <div style="margin:0px 0px 10px 0px;padding-left:30px;vertical-align:middle;line-height:28px;background:url(<c:url value="/images/new/icon/error.png"/>) no-repeat;">
                <c:out value="${error}"/>
            </div>
        </c:forEach>
    </div>
    <c:remove var="errors" scope="session"/>
</c:if>

<% if (request.getAttribute("struts.valueStack") != null) { %>
<%-- ActionError Messages - usually set in Actions --%>
<s:if test="hasActionErrors()">
    <div id="errorMessages" class="messageRow">    
      <s:iterator value="actionMessages">
    	<div style="margin:0px 0px 10px 0px;padding-left:30px;vertical-align:middle;line-height:28px;background:url(<c:url value="/images/new/icon/warning.png"/>) no-repeat;">
            <s:property/>
        </div>
      </s:iterator>
   </div>
</s:if>

<% } %>
